package com.iknow.util.enums;

import com.iknow.util.StringUtil;

public enum IKTagEnum
{
  static
  {
    AUDIO = new IKTagEnum("AUDIO", 1);
    VIDEO = new IKTagEnum("VIDEO", 2);
    IMAGE = new IKTagEnum("IMAGE", 3);
    A = new IKTagEnum("A", 4);
    PHASE = new IKTagEnum("PHASE", 5);
    STYLEPHASE = new IKTagEnum("STYLEPHASE", 6);
    TEXT = new IKTagEnum("TEXT", 7);
    IKTagEnum[] arrayOfIKTagEnum = new IKTagEnum[8];
    arrayOfIKTagEnum[0] = BR;
    arrayOfIKTagEnum[1] = AUDIO;
    arrayOfIKTagEnum[2] = VIDEO;
    arrayOfIKTagEnum[3] = IMAGE;
    arrayOfIKTagEnum[4] = A;
    arrayOfIKTagEnum[5] = PHASE;
    arrayOfIKTagEnum[6] = STYLEPHASE;
    arrayOfIKTagEnum[7] = TEXT;
    ENUM$VALUES = arrayOfIKTagEnum;
  }

  public static IKTagEnum get(String paramString)
  {
    IKTagEnum localIKTagEnum;
    if (StringUtil.isEmpty(paramString))
      localIKTagEnum = null;
    while (true)
    {
      while (true)
      {
        while (true)
        {
          while (true)
          {
            while (true)
            {
              while (true)
              {
                while (true)
                {
                  while (true)
                  {
                    while (true)
                    {
                      return localIKTagEnum;
                      if (!(StringUtil.equalsString("img", paramString)))
                        break;
                      localIKTagEnum = IMAGE;
                    }
                    if (!(StringUtil.equalsString("audio", paramString)))
                      break;
                    localIKTagEnum = AUDIO;
                  }
                  if (!(StringUtil.equalsString("video", paramString)))
                    break;
                  localIKTagEnum = VIDEO;
                }
                if (!(StringUtil.equalsString("a", paramString)))
                  break;
                localIKTagEnum = A;
              }
              if (!(StringUtil.equalsString("p", paramString)))
                break;
              localIKTagEnum = PHASE;
            }
            if (!(StringUtil.equalsString("sp", paramString)))
              break;
            localIKTagEnum = STYLEPHASE;
          }
          if ((!(StringUtil.equalsString("#text", paramString))) && (!(StringUtil.equalsString("label", paramString))))
            break;
          localIKTagEnum = TEXT;
        }
        if (!(StringUtil.equalsString("br", paramString)))
          break;
        localIKTagEnum = BR;
      }
      localIKTagEnum = null;
    }
  }
}